﻿<%@ Page Title="" Language="C#" MasterPageFile="~/manager/page/ManagerMasterPage.Master" AutoEventWireup="true" CodeBehind="article.aspx.cs" Inherits="Com.Web.coffinegurunaru.manager.board.article" %>
<%@ Register TagPrefix="UC" TagName="BoardMenu" Src="~/manager/board/boardmenu.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="phHead" runat="server">
<script language="javascript" type="text/javascript" src="/manager/board/article.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
	$("div.pager").pager({
		pageSize : 20,
		useCallback : true,
		pageNo : 1,
		callback:function(pageNo) {
			$.Article.getList();
		}
    });
	$.Article.boardSN = <%= BoardSN %>;
	$.Article.boardJsonData = "<%= BoardJsonData.Replace("\"", "\\\"") %>";
	$.Article.getList();
});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="phContent" runat="server">
<hr />
<br />
<table>
<tr>
	<td valign="top">
        <UC:BoardMenu id="boardMenu" runat="server" />
	</td>
	<td style="width:20px;"></td>
	<td valign="top">
        <table width="100%">
        <tr>
            <td align="left" valign="top">
				<button class="addFormButton" onclick="$.Article.showInputForm(); return false;">추가</button>
				<div style="width:400px; display:none;" class="inputForm">
				<input type="hidden" class="articleSN" />
                <table width="100%" cellpadding="0" cellspacing="1" border="0" style="background-color:Olive">
                <tr style="height:30px;">
                    <th style="width:100px; text-align:center; background-color:#eeeeee;">제목</th>
                    <td style="background-color:#ffffff;"><input type="text" class="articleTitle" style="width:300px"/></td>
				</tr>
				<tr>
                    <th style="width:100px; text-align:center;  background-color:#eeeeee;">내용</th>
                    <td style="background-color:#ffffff;"><textarea class="articleContent" style="width:300px" rows="10"></textarea></td>
				</tr>
			    <tr>
				    <th style="width:100px; text-align:center;  background-color:#eeeeee;">이미지</th>
				    <td style="background-color:#ffffff;">
					    <input type="text" class="articleFileUrl" readonly="readonly"  style="width:300px"/><input type="button" id="Button1" value="이미지업로드" onclick="$.Article.FileOpen(); return false;"/>
				    </td>
			    </tr>
				<tr>
					<td colspan="2" style="background-color:#ffffff;">
						<button class="submit" onclick="$.Article.submitInputForm(); return false;">완료</button>
						<button class="button" onclick="$.Article.cancelInputForm(); return false;">최소</button>
					</td>
				</tr>
                </table>
				</div>
				<br />				
                <table class="articleList" cellpadding="0" cellspacing="1" border="0" style="background-color:Olive">
                <thead>
                <tr style="height:30px;background-color:#eeeeee;>
                    <td style="width:100px; text-align:center">SN</td>
                    <td style="width:100px; text-align:center">제목</td>
                    <td style="width:400px; text-align:center">내용</td>
                    <td style="width:100px; text-align:center">파일url</td>
                    <td style="width:100px; text-align:center">글쓴이</td>
                    <td style="width:100px; text-align:center">조회수</td>
                    <td style="width:100px; text-align:center">생성일</td>
                    <td style="width:100px; text-align:center">수정일</td>
                    <td style="width:100px; text-align:center">관리</td>
                </tr>
                </thead>
                <tbody>
                </tbody>
                </table>
                <div class="pager"></div>
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>
</asp:Content>
